<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理--跳转录入单位信息或跳转选择已有单位信息</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
	function selectEmployer(){
		var arr = showModalDialog("<%=request.getContextPath()%>/EmployerInfo.do?method=find", "", "dialogWidth:550pt;dialogHeight:400pt;help:0;status:0");
		if(arr != null){
			var id = arr[0][0];
			var name = arr[0][1];
			document.form1.supvInfoUnitId.value = id;
			document.form1.unit.value = name;
		}
	}
	function check(){
		var frm = document.form1;
		if(frm.supvInfoUnitId.value == ""){
			alert("请选择自己已有单位信息！");
			return false;
		}
	}
	</script>
</head>

<body>
<form name="form1" action="<%=request.getContextPath()%>/unitinfo.do?method=addSelect" method="post" onsubmit="return check()">
<table width="70%">
  </tr>
  <tr>
    <td width="25%" align="right" class="bg_blue"><p>选择已有单位信息</p>
    </td>
    <td width="75%" align="left" ><input type="hidden" name="supvInfoUnitId"><input type="text" name="unit" size="30" readonly onclick="javascript:selectEmployer()"> <input class="buttonnormal" type="button" value="选择" onclick="javascript:selectEmployer()">&nbsp;</td>
  </tr></p>
    </td>
   <tr>
    <td class="nohover" colspan="2" align="center"><input class="buttonnormal" type="submit" value="提交">&nbsp;<input class="buttonnormal" type="reset" value="重置"> <input class="buttonnormal" type="button" value="返回" onClick="history.go(-1)"></td>
  </tr>
</table>
</form>
</body>
</html>
